//
//  PlayerView.h
//  封装播放器
//
//  Created by douya on 15/1/16.
//  Copyright (c) 2015年 douya. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

@protocol PlayerViewDelegate <NSObject>

-(void)TouchSpeed;//滑动快进
-(void)TouchRetreat;//滑动后退

@end

@interface PlayerView : UIView
{
    float x;
    float y;
    float volume;
    id <PlayerViewDelegate>delegate;
}
+(Class)layerClass;
-(AVPlayer *)player;
-(void)setPlayer:(AVPlayer *)player;

@property(nonatomic,assign)float volume;
@property(nonatomic,strong)id<PlayerViewDelegate> delegate;

@end
